/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DAOServices;

import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import Pojo.*;
import Dao.*;
import java.util.List;

/**
 *
 * @author USER
 */
@WebService(serviceName = "QLNHS_DAO_Services")
public class QLNHS_DAO_Services {

    @WebMethod(operationName = "laySach")
    public List<Sach> LaySach(@WebParam(name = "mySQL") String mySQL) {
        return SachDAO.laySach(mySQL);
    }

    @WebMethod(operationName = "layNhaXuatBan")
    public List<NhaXuatBan> layNhaXuatBan(@WebParam(name = "mySQL") String mySQL) {
        return NhaXuatBanDAO.layNhaXuatBan(mySQL);
    }

    @WebMethod(operationName = "layTheLoai")
    public List<TheLoai> layTheLoai(@WebParam(name = "mySQL") String mySQL) {
        return TheLoaiDAO.layTheLoai(mySQL);
    }

    @WebMethod(operationName = "themSach")
    public boolean themSach(@WebParam(name = "sach") Sach sach) {
        return SachDAO.themSach(sach);
    }

    @WebMethod(operationName = "themSachGiaoKhoa")
    public boolean themSachGiaoKhoa(@WebParam(name = "sach") Sach sach) {
        return SachGiaoKhoaDAO.themSachGiaoKhoa(sach);
    }

    @WebMethod(operationName = "themHoaDon")
    public int themHoaDon(@WebParam(name = "hoaDon") HoaDon hoaDon) {
        return HoaDonDAO.themHoaDon(hoaDon);
    }

    @WebMethod(operationName = "themChiTietHoaDon")
    public boolean themChiTietHoaDon(@WebParam(name = "cthd") ChiTietHoaDon cthd) {
        return ChiTietHoaDonDAO.themChiTietHoaDon(cthd);
    }

    @WebMethod(operationName = "capNhatSachThuong")
    public boolean capNhatSachThuong(@WebParam(name = "sach") Sach sach) {
        return SachDAO.capNhatSach(sach);
    }

    @WebMethod(operationName = "capNhatSachGiaoKhoa")
    public boolean capNhatSachGiaoKhoa(@WebParam(name = "sach") Sach sach) {
        return SachGiaoKhoaDAO.capNhatSachGiaoKhoa(sach);
    }
}
